const stringMessage = function(message){
    let index = message.indexOf("|")
    let messArray = []
    messArray.push(message.substring(0,index),message.substring(index+1))
    return messArray
}
const interceptionMessage = function(message){
    var mes = ''
    if(message !=null && message.length>80){
        mes = message.substr(0,80)+'...'
        mes =  mes.replace(/(\r)*\n/g, "<br/>").replace(/\s/g, "　")
    }else{
        mes = message
    }
    return mes
}
export{stringMessage,interceptionMessage}